import 'package:flutter_benchu/utils/commonPkg.dart';


// tab页面
var tabHandler = Handler( handlerFunc: (BuildContext context, Map<String, dynamic> params) {
  return TabPage();
});

// webView页面
var webViewPageHandler = Handler( handlerFunc: (BuildContext context, Map<String, dynamic> params) {
  return WebViewPage();
});

// 事件demo页面
var eventDemoPageHandler = Handler( handlerFunc: (BuildContext context, Map<String, dynamic> params) {
  return EventDemoPage();
});

// 路由相关demo页面
var routerDemoPageHandler = Handler( handlerFunc: (BuildContext context, Map<String, dynamic> params) {
  return RouterDemoPage();
});

// 路由相关详情demo页面
var routerDetailsDemoPageHandler = Handler( handlerFunc: (BuildContext context, Map<String, dynamic> params) {
  return RouterDetailsDemoPage(
    title: params['title']?.first,
    url: params['url']?.first,
  );
});

// 国际化相关demo页面
var languageDemoPageHandler = Handler( handlerFunc: (BuildContext context, Map<String, dynamic> params) {
  return LanguageDemoPage();
});

// 屏幕适配相关demo页面
var aptDemoPageHandler = Handler( handlerFunc: (BuildContext context, Map<String, dynamic> params) {
  return AptDemoPage();
});

// 请求接口相关demo页面
var apiDemoPageHandler = Handler( handlerFunc: (BuildContext context, Map<String, dynamic> params) {
  return ApiDemoPage();
});

// 本地缓存相关demo页面
var cacheDemoPageHandler = Handler( handlerFunc: (BuildContext context, Map<String, dynamic> params) {
  return CacheDemoPage();
});

// 组件库例子
var getwidgetDemoPageHandler = Handler( handlerFunc: (BuildContext context, Map<String, dynamic> params) {
  return GetwidgetDemoPage();
});

// 扫码页面
var scannerHandler = Handler(
    handlerFunc: (BuildContext context, Map<String, List<String>> params) {
  return ScannerPage();
});

// 于原生交互
var sendNativeDemoPageHandler = Handler(
    handlerFunc: (BuildContext context, Map<String, List<String>> params) {
  return SendNativeDemoPage();
});